import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
//引入elementui
import 'element-ui/lib/theme-chalk/index.css';
import * as api from './utils/request';
import * as version from './utils/version';
import * as img from './utils/img';

Vue.config.productionTip = false
Vue.use(ElementUI)

// 扩展 Vue.prototype
declare module 'vue/types/vue' {
	interface Vue {
		$api : typeof api;
		$version : typeof version;
		$img: typeof img;
	}
}

Vue.prototype.$api = api
Vue.prototype.$version = version;
Vue.prototype.$img = img;

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')